#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
     ui->textEdit->setAlignment(Qt::AlignHCenter);
}

void Widget::on_pushButton_2_clicked()
{
     ui->textEdit->setAlignment(Qt::AlignLeft);
}

void Widget::on_pushButton_3_clicked()
{
    ui->textEdit->setTextColor(Qt::red);
}
